proc broadcast {nick host botnet} {
  global botnick home bcast

  if {$botnet == ""} {
    putquick "NOTICE $nick :\0034ERROR - Invalid Syntax - Should Be - (/msg) $botnick broadcast <message>"
    return 0
  }

  putlog "!$nick ($host)! broadcast $botnet"
  putquick "NOTICE $nick :\0033Sucessfully sent global broadcast '\003\002$botnet\002\0033' to all channels this bot is currently in."

  if {$bcast == "1"} {
    putquick "PRIVMSG $home :\002$nick\002 ($host) used broadcast global message: $botnet"
  }

  foreach chan [channels] {
    putquick "PRIVMSG $chan :\002\00312Global Message from \0034$nick\002\003: $botnet"    
  }

  return 0
}









